package com.cloudbroker.bcs.common.mq.rabbitmq.basic;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.core.MessageListener;
import org.springframework.stereotype.Component;

@Component
public class ItfConsumer implements MessageListener {
    
    private static final Logger LOGGER = LoggerFactory.getLogger(ItfConsumer.class);
    
    public ItfConsumer() {
    }
    
    @Override
    public void onMessage(Message message) {
        LOGGER.info("received message: " + message);
    }
    
}
